Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor improvements #9802

Merged
merged 5 commits into from
Feb 22, 2021
Merged

Minor improvements #9802

merged 5 commits into from
Feb 22, 2021

Conversation

Nekotekina
Copy link
Member

No description provided.

@@ -366,24 +366,24 @@ namespace utils
}

// Align to power of 2
template <typename T, typename = std::enable_if_t<std::is_integral<T>::value && std::is_unsigned<T>::value>>
Copy link
Contributor

@elad335 elad335 Feb 19, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

enum can be unsigned but is not integral.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, see https://en.cppreference.com/w/cpp/types/is_unsigned it even has examples with enums.
Only integral types can return true here.

Nekotekina and others added 3 commits February 22, 2021 13:00
@Nekotekina Nekotekina changed the title Minor improvements [WIP] Minor improvements Feb 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants